package com.drinkdelivery.common.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.drinkdelivery.common.annotation.Excel;


/**
 * 商品分类对象 product_categories
 *
 * @author lzh
 * @date 2024-11-04
 */
@Data
@ApiModel(description = "商品分类实体类")
@TableName("product_categories")
public class ProductCategories  implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 分类ID，主键，自增 */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 父分类ID，外键 */
    @Excel(name = "父分类ID，外键")
    private Integer parentId;
    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;
    /** 分级 */
    @Excel(name = "分级")
    private Integer level;
    /** 分类图片 */
    @Excel(name = "分类图片")
    private String imageUrl;
    /** 分类描述 */
    @Excel(name = "分类描述")
    private String description;

    @ApiModelProperty(value = "逻辑删除标记，0-未删除，1-已删除")
    @Excel(name = "逻辑删除标记，0-未删除，1-已删除")
    private Integer isDeleted;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;
    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;
    /**
     * 搜索值
     */
    @TableField(exist = false)
    private String searchValue;


    @ApiModelProperty(value = "商户id")
    private  Integer merchantId;

    @ApiModelProperty(value = "筛选上新，0:否,1:是")
    private Integer upNow;

    @ApiModelProperty(value = "酒单排序")
    private Integer sort;


}
